package com.wufeng.mapper;

import com.wufeng.dto.ChatRecordDto;
import com.wufeng.entity.ChatRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Hxh
 * @description 针对表【chat_record】的数据库操作Mapper
 * @createDate 2024-01-02 23:12:58
 * @Entity com.wufeng.entity.ChatRecord
 */
public interface ChatRecordMapper extends BaseMapper<ChatRecord> {

    List<ChatRecordDto> getChatRecordByCondition(@Param("userIds") List<Integer> userIds,
                                                 @Param("message") String message,
                                                 @Param("startIndex") Integer startIndex,
                                                 @Param("pageSize") Integer pageSize);

    Integer countChatRecordByCondition(@Param("userIds")List<Integer> userIds, @Param("message") String message);
}




